package com.teampower.idea.web.listener;


import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.context.ContextLoaderListener;

public class StartupListener extends ContextLoaderListener implements ServletContextListener {
    
    private static final Log log = LogFactory.getLog(StartupListener.class);

    public void contextInitialized(ServletContextEvent event) {
        if (log.isDebugEnabled()) {
        	log.debug("初始化 context...");
        }
        super.contextInitialized(event);
        if (log.isDebugEnabled()) {
            log.debug("初始化 context 完成[OK]");
        }

    }

}
